class url_response:
    def __init__(self):
        self.response_text = []
    
    
    def map(self, **args  ):
        result = {}        
        
        for key, value in args.items():            
            
        
            
            if key == 'html':
                result[key] = value
            
            if key == 'finalize':
                if value:
                    result[key] = True
                    
            if key == 'check_ajax':
                if value:
                    result[key] = True
            
            if key == 'json':
                if value:
                    result[key] = value
                    
            if key == 'urls':
                if value:                    
                    result[key] = value
                    
            if key == 'redirect':
                if value:                    
                    result[key] = value
        
        return result
        
        
    
    def html(self, text):
        if text:
            self.response_text.append( str(text) )
            
            
    def get_response_text(self):
        return ''.join(self.get_response_text())
        
HttpResponse = url_response()